import Foundation

struct Trade: Codable {
    var tradeId: String
    var timestamp: String
    
    var realStudentNumber: String
    var realName: String
    var contact: String
    
    var wantPrice: Int
    
    var location: String
    var comment: String
}

struct TradeCollection: Codable {
    var collection: [Trade]
}

let DefaultTrade = Trade(tradeId: "T657fde571febe",
                         timestamp: "2023-12-18 13:45:13",
                         realStudentNumber: "22371345",
                         realName: "贾博驿",
                         contact: "微信：Ap0stader",
                         wantPrice: 800,
                         location: "15公寓楼下",
                         comment: "上面是否有笔记？")
